<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
           width: 198px;
           height: 233px;
           color: #666;background-size: 318px 319px;
           background-color: #e8e8e8;background-repeat: no-repeat;
           text-align: center;
       }
        .p1{
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: lighter;
            color: #000;
            margin-top: 0;
        }
        .p2{
            margin-top: 6px;
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: bold;
            color: #0aa1ed;
        }
        a{
            background-color: #0aa1ed;
            text-decoration: none;
            color: #e8e8e8;
            /*display:block*/
            /*通过外边距让块级元素居中*/
            /*margin：0 auto*/
            /*行内元素或行内块元素 上级元素添加了text-align：center
            元素会居中，块级元素需要单独通过外边距控制居中*/
            display:inline-block ;
            width: 100px;
            height: 24px;
            border-radius: 2px;
            line-height: 24px;


        ;

        }

    </style>
</head>
<body>
<div>
    <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png">
        <p class="p1">戴尔(DELL)XPS13-9360-R1609 13.3英<br>
            寸微边框笔记本电脑 </p>
        <p class="p2">4600</p>
    <a href="">查看详情</a>
</div>
</body>
</html>